package test

import "github.com/ecodeclub/ekit/net/httpx/httptestx"

func NewJSONResponseRecorder[T any]() *httptestx.JSONResponseRecorder[Result[T]] {
	return httptestx.NewJSONResponseRecorder[Result[T]]()
}

type Result[T any] struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data T      `json:"data"`
}
